package com.feng.seata.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author yinglong.zhang
 * @description
 * @date 2024-1-19 13:18
 */
@Data
@Entity
@TableName(value = "event")
public class EventEntity implements Serializable {
    @Id
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 事件描述
     */
    @Column(name = "event_desc")
    private String eventDesc;

    /**
     * 事件时间
     */
    @Column(name = "event_time")
    private LocalDateTime eventTime;

}
